

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class FinishedExams
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _RegisteredCoursesID =-1;
public System.Int64 RegisteredCoursesID
{
get { return _RegisteredCoursesID;}
set { _RegisteredCoursesID = value;}
}
System.DateTime _CurrentDate =DateTime.Now;
public System.DateTime CurrentDate
{
get { return _CurrentDate;}
set { _CurrentDate = value;}
}
System.Double _Degree =-1;
public System.Double Degree
{
get { return _Degree;}
set { _Degree = value;}
}
System.String _ExamIDs ="";
public System.String ExamIDs
{
get { return _ExamIDs;}
set { _ExamIDs = value;}
}
System.String _Answers ="";
public System.String Answers
{
get { return _Answers;}
set { _Answers = value;}
}
public FinishedExams()
{
}
public FinishedExams(System.Int64 __RegisteredCoursesID,System.DateTime __CurrentDate,System.Double __Degree,System.String __ExamIDs,System.String __Answers)
{
_RegisteredCoursesID = __RegisteredCoursesID;
_CurrentDate = __CurrentDate;
_Degree = __Degree;
_ExamIDs = __ExamIDs;
_Answers = __Answers;
}
public FinishedExams(System.Int64 __ID,System.Int64 __RegisteredCoursesID,System.DateTime __CurrentDate,System.Double __Degree,System.String __ExamIDs,System.String __Answers)
{
_ID = __ID;
_RegisteredCoursesID = __RegisteredCoursesID;
_CurrentDate = __CurrentDate;
_Degree = __Degree;
_ExamIDs = __ExamIDs;
_Answers = __Answers;
}


             public override bool Equals(object obj)
         {
             if (obj is FinishedExams)
             {
                 FinishedExams newObj = (FinishedExams)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
